<!DOCTYPE html>
<html style="height:100% !important;">
<head>
    <meta charset="UTF-8">
    <title>友牧宝后台登录平台</title>
    <link rel="icon" type="image/png" sizes="32x32" href="login/logrows.png">
    <script src="https://cdn.bootcss.com/jquery/2.1.1-rc2/jquery.min.js"></script>
    <link rel="stylesheet" href="/ymb_ht/css/public.css">
</head>
<body id="body">
<style>
    body{overflow:hidden;height:100%!important}#imgBoner{width:100%;height:100%;float:left;z-index:-1;position:absolute}#formInput{width:400px;height:500px;z-index:99;position:absolute;top:0;right:0;left:0;bottom:0;margin:auto}#formInput>img{width:100%;height:170px;z-index:9999999}#formInput>div{width:100%;height:330px;margin-top:-15px;background-color:#fff;position:relative}#formInput>div>div{position:absolute;width:285px;height:250px;top:0;right:0;bottom:0;left:0;margin:auto}.inputCssPng{width:100%;height:40px;border-bottom:1px solid #ededed}.inputCssPng b{display:inline-block;width:12%;height:32px;background:url('/ymb_ht/login/10.png') no-repeat -32px -120px}.inputCssPng input{display:inline-block;width:55%;height:32px;position:absolute;margin-left:8%;border:0;outline:0}input::-webkit-input-placeholder{color:#bcbcbc;font-size:14px}input:-moz-placeholder{color:#bcbcbc;font-size:14px}input::-moz-placeholder{color:#bcbcbc;font-size:14px}input:-ms-input-placeholder{color:#bcbcbc;font-size:14px}.input2{display:inline-block;width:8%;height:32px;background:url('/ymb_ht/login/10.png') no-repeat -81px -120px!important}
    #Loginbutton{margin-top:20px;width:100%;height:40px;background-color:#6bb3fd;color:#fff;border:0;border-radius:5px;font-size:16px;letter-spacing:3px;margin-bottom:10px;cursor:pointer}#adocument{text-decoration:none;color:#6bb3fd;font-size:14px}.inputCssPng{margin-top:20px; position: relative;}
    .ascription{position: absolute;bottom:20px;color:#fff;width: 100%;text-align: center;font-size: 12px;}
</style>
<img src="/ymb_ht/login/form.png" alt="" id="imgBoner">
<!--输入框禁止乱动 ID-->
<div id="formInput">
    <img src="/ymb_ht/login/login.png" alt="">
    <div>
        <div>
            <div class="inputCssPng">
                <b></b>
                <input type="text" placeholder="请输入账号" name="Account" class="inputBorderNone" id="Account" autofocus>
            </div>
            <div class="inputCssPng">
                <b class="input2"></b>
                <input type="password" placeholder="请输入密码" name="password"  class="inputBorderNone" id="password">
            </div>
            <button id="Loginbutton">登录</button>
        </div>
    </div>
</div>
<!--版本有友牧宝平台独有-->
<div class="ascription">
    ©2018 ymb &nbsp;&nbsp;版本权归属友牧宝
</div>
<!--弹出框-->
<div id="Popup" style="display: none;">
    <div>
        <div>
            <span id="Prompt">温馨提示!</span>
        </div>
        <div>
            <span id="error">请设置6-16位数字字母组合密码</span>
        </div>
        <div>
            <button class="Close">确定</button>
        </div>
    </div>
</div>
<!--逻辑处理器-->
<script>
    $(function(){$("#Loginbutton").on("click",function(){var a=$("#Account").val();var b=$("#password").val();$.ajax({type:'POST',url:'/wf/login',dataType:'json',contentType:"application/json",async:false,data:JSON.stringify({loginname:a,pwd:b}),success:function(data){if(data.code!='00'){$("#error").text(data.data);$("#Popup").css('display','block');return}if(data.code=='00'){window.sessionStorage.setItem('usertypeSmin',data.data.usertype);window.location.href="/ymb_ht/index.html";return}}})});$(".Close").on('click',function(){$("#Popup").css('display','none')})})
</script>
</body>
</html>
